﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F41 RID: 3905
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicGetTalentInfoScRsp : IMessage<RogueMagicGetTalentInfoScRsp>, IMessage, IEquatable<RogueMagicGetTalentInfoScRsp>, IDeepCloneable<RogueMagicGetTalentInfoScRsp>, IBufferMessage
	{
		// Token: 0x170031A1 RID: 12705
		// (get) Token: 0x0600AF43 RID: 44867 RVA: 0x001DA46F File Offset: 0x001D866F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicGetTalentInfoScRsp> Parser
		{
			get
			{
				return RogueMagicGetTalentInfoScRsp._parser;
			}
		}

		// Token: 0x170031A2 RID: 12706
		// (get) Token: 0x0600AF44 RID: 44868 RVA: 0x001DA476 File Offset: 0x001D8676
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicGetTalentInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170031A3 RID: 12707
		// (get) Token: 0x0600AF45 RID: 44869 RVA: 0x001DA488 File Offset: 0x001D8688
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicGetTalentInfoScRsp.Descriptor;
			}
		}

		// Token: 0x0600AF46 RID: 44870 RVA: 0x001DA48F File Offset: 0x001D868F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGetTalentInfoScRsp()
		{
		}

		// Token: 0x0600AF47 RID: 44871 RVA: 0x001DA498 File Offset: 0x001D8698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGetTalentInfoScRsp(RogueMagicGetTalentInfoScRsp other) : this()
		{
			this.rogueMagicTalentInfo_ = ((other.rogueMagicTalentInfo_ != null) ? other.rogueMagicTalentInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AF48 RID: 44872 RVA: 0x001DA4E4 File Offset: 0x001D86E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGetTalentInfoScRsp Clone()
		{
			return new RogueMagicGetTalentInfoScRsp(this);
		}

		// Token: 0x170031A4 RID: 12708
		// (get) Token: 0x0600AF49 RID: 44873 RVA: 0x001DA4EC File Offset: 0x001D86EC
		// (set) Token: 0x0600AF4A RID: 44874 RVA: 0x001DA4F4 File Offset: 0x001D86F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicTalentInfo RogueMagicTalentInfo
		{
			get
			{
				return this.rogueMagicTalentInfo_;
			}
			set
			{
				this.rogueMagicTalentInfo_ = value;
			}
		}

		// Token: 0x170031A5 RID: 12709
		// (get) Token: 0x0600AF4B RID: 44875 RVA: 0x001DA4FD File Offset: 0x001D86FD
		// (set) Token: 0x0600AF4C RID: 44876 RVA: 0x001DA505 File Offset: 0x001D8705
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600AF4D RID: 44877 RVA: 0x001DA50E File Offset: 0x001D870E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicGetTalentInfoScRsp);
		}

		// Token: 0x0600AF4E RID: 44878 RVA: 0x001DA51C File Offset: 0x001D871C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicGetTalentInfoScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RogueMagicTalentInfo, other.RogueMagicTalentInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AF4F RID: 44879 RVA: 0x001DA56C File Offset: 0x001D876C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueMagicTalentInfo_ != null)
			{
				num ^= this.RogueMagicTalentInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AF50 RID: 44880 RVA: 0x001DA5C1 File Offset: 0x001D87C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AF51 RID: 44881 RVA: 0x001DA5C9 File Offset: 0x001D87C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AF52 RID: 44882 RVA: 0x001DA5D4 File Offset: 0x001D87D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueMagicTalentInfo_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.RogueMagicTalentInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AF53 RID: 44883 RVA: 0x001DA630 File Offset: 0x001D8830
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueMagicTalentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueMagicTalentInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AF54 RID: 44884 RVA: 0x001DA688 File Offset: 0x001D8888
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicGetTalentInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueMagicTalentInfo_ != null)
			{
				if (this.rogueMagicTalentInfo_ == null)
				{
					this.RogueMagicTalentInfo = new RogueMagicTalentInfo();
				}
				this.RogueMagicTalentInfo.MergeFrom(other.RogueMagicTalentInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AF55 RID: 44885 RVA: 0x001DA6F0 File Offset: 0x001D88F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AF56 RID: 44886 RVA: 0x001DA6FC File Offset: 0x001D88FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 74U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.rogueMagicTalentInfo_ == null)
						{
							this.RogueMagicTalentInfo = new RogueMagicTalentInfo();
						}
						input.ReadMessage(this.RogueMagicTalentInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400470D RID: 18189
		private static readonly MessageParser<RogueMagicGetTalentInfoScRsp> _parser = new MessageParser<RogueMagicGetTalentInfoScRsp>(() => new RogueMagicGetTalentInfoScRsp());

		// Token: 0x0400470E RID: 18190
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400470F RID: 18191
		public const int RogueMagicTalentInfoFieldNumber = 9;

		// Token: 0x04004710 RID: 18192
		private RogueMagicTalentInfo rogueMagicTalentInfo_;

		// Token: 0x04004711 RID: 18193
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04004712 RID: 18194
		private uint retcode_;
	}
}
